#include "AvantiGroupAction.h"

using namespace std;

AvantiGroupAction::AvantiGroupAction(ArRobot* robot):ArActionGroup(robot)
{
	evitaostfront=new ArActionAvoidFront("evita gli ostacoli",300,30,10);
	evitalaterale= new ArActionAvoidSide("evita ostacolo laterale",300,10);
	avanti = new AvantiAction();
	addAction(avanti,50);
	addAction(evitaostfront,100);
	addAction(evitalaterale,100);

}

AvantiGroupAction::~AvantiGroupAction()
{
	delete(evitalaterale);
	delete(evitaostfront);
	delete(avanti);
}
